*** Settings ***
Library    Screenshot
Library    Selenium2Library
Resource    config.robot
Resource    ../Locator/03_邮箱首页定位信息.resource
Suite Setup    Run Keywords    打开QQ邮箱并登录    AND    Selenium2Library.Set Screenshot Directory    ${OUTPUT_DIR}
Test Setup    Run Keywords    Click Element    ${头部_邮箱首页}    AND   Select Frame    ${邮箱页面_主窗体_iframe}
Test Teardown    Unselect Frame
Suite Teardown    关闭QQ邮箱


*** Test Cases ***
0201_邮箱首页_概况_点击进入收件箱跳转收件箱成功
    Click Element    ${邮箱首页_概况_链接_进入收件箱}    
    Wait Until Page Contains    全部标为已读    20
    Capture Page Screenshot    ${TEST_NAME}.png

0202_邮箱首页_概况_点击星标邮件跳转星标邮件页面成功
    Click Element    ${邮箱首页_概况_链接_星标邮件}    
    Wait Until Page Contains Element    xpath=//div[text()='星标邮件']    30
    Capture Page Screenshot    ${TEST_NAME}.png